import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import infiniteScroll from "vue-infinite-scroll"

import {
  Form,
  FormItem,
  Input,
  Button,
  Image,
  Container,
  Header,
  Dropdown,
  DropdownMenu,
  DropdownItem,
  Aside,
  Col,
  Menu,
  MenuItem,
  Submenu,
  Main,
  Footer,
  DatePicker,
  Table,
  TableColumn,
  Pagination,
  PageHeader,
  Select,
  Switch,
  Option,
  Alert,
  Row,
  Loading,
  Link,
  Tabs,
  TabPane,
  Drawer,
  Dialog,
  Message,
  MessageBox,
  InputNumber,
} from 'element-ui';

// import infiniteScroll from "vue-infinite-scroll";

Vue.use(Form).use(FormItem).use(Input).use(Button).use(Image).use(Container).use(Header).use(Dropdown).use(DropdownMenu)
  .use(DropdownItem).use(Aside).use(Col).use(Menu).use(MenuItem).use(Submenu).use(Main).use(Footer).use(DatePicker).use(Table)
  .use(TableColumn).use(Pagination).use(PageHeader).use(Select).use(Switch).use(Option).use(Alert).use(Row).use(Loading).use(InputNumber)
  .use(Link).use(Tabs).use(TabPane).use(Drawer).use(Dialog).use(infiniteScroll);

Vue.config.productionTip = false;
Vue.prototype.$message = Message
Vue.prototype.$alert = MessageBox.alert
Vue.prototype.$confirm = MessageBox.confirm
Vue.prototype.$prompt = MessageBox.prompt
Vue.prototype.$loading = Loading.service;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app');
